#ENV*{bloc_ancre}
#SET{bornes,#ENV{page_courante}|calcul_bornes_pagination{#ENV{nombre_pages},10}}
#SET{premiere, #GET{bornes}|reset}
#SET{derniere, #GET{bornes}|end}
#SET{separateur,'|'}
#SET{i,#ENV{page_courante}|moins{1}}
[(#GET{i}|>{0}|?{' ',''})[
	(#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
	][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=<:public:page_precedente:>}{separateur=''}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#ENV{derniere}})]
	#SET{i,#GET{i}|plus{2}}
	[(#GET{i}|<{#ENV{nombre_pages}}|?{'|',''})]
]
#SET{i,#ENV{page_courante}|plus{1}}
[(#GET{i}|<={#ENV{nombre_pages}}|?{' ',''})[
	(#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
	][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=<:public:page_suivante:>}{separateur=''}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#ENV{derniere}})]
]